﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="service_mmbh.aspx.cs" Inherits="service_mmbh" %>

<%@ Register Src="uc/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="uc/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/base.css" rel="stylesheet" type="text/css" />
    <link href="css/service.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="http://i.ymcps.com/images/float/floatS.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <uc1:header ID="header1" runat="server" /><br />
    <div class="channelLayout">
        <!------ 客服专区 频道导航 start ------>
        <div class="topLine">
        </div>
        <div class="service_title service_bg">
        </div>
        <div class="channelNavBg">
            <div class="hqzx_nav_tb">
                <ul>
                    <li><a href="Default.aspx" class="b">客服首页</a></li>
                    <li><a href="service_video.aspx" class="b">培训视频</a></li>
                    <li><a href="servicehelp/index.aspx" target="_blank" class="b">帮助中心</a></li>
                    <li class="hqzx_nav_cur service_bg">自助服务</li>
                    <li><a href="service_feedback.aspx" class="b">意见反馈</a></li>
                    <li><a href="training.aspx" class="b">各地公告</a></li>
                    <li><a href="training1.aspx" class="b">会场预约</a></li>
                    <li><a href="service_map1.aspx" class="b">全国服务商</a></li>
                </ul>
            </div>
        </div>
        <!------ 客服专区 频道导航 end ------>
    </div>
    <div class="clearok">
    </div>
    <!------ 自助服务 start ------>
    <div class="service_self1 marginTop10 font14 font-weight">
        <img src="images/index_ico2.gif" class="img" />自助服务&nbsp; 
        <a href="http://kefu.emoney.cn/servicehelp/detail2.aspx?infoid=323" 
            target="_blank" style="font-weight:normal;color:Blue">如何使用?</a>
    </div>
    <!------ 密码保护 start ------>
    <input id="hidName" type="hidden" runat="server" value="" />
    <div class="self_c marginTop10">
        <div class="self_c_l" style="height:380px;">
            <div class="self_login" id="login" att="ulogin">
            </div>
            <div class="clearok">
            </div>
            <ul>
                <li att="ulogin"><a id="qkcl" >清空处理</a><div class="self_ico">
                    <img src="images/ico_self1.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_xgmm.aspx">修改密码</a><div class="self_ico">
                    <img src="images/ico_self3.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_dqrcx.aspx">到期日查询</a><div class="self_ico">
                    <img src="images/ico_self4.gif" /></div>
                </li>
                <li><a href="service_rjcz.aspx">软件充值</a><div class="self_ico">
                    <img src="images/ico_self5.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_wsjf.aspx">网上积分</a><div class="self_ico">
                    <img src="images/ico_self6.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_wyzs.aspx">我要折算</a><div class="self_ico">
                    <img src="images/ico_self7.gif" /></div>
                </li>
                <li att="ulogin" class="current">密码保护<div class="self_ico">
                    <img src="images/ico_self8.gif" /></div>
                </li>
                <li att="ulogin"><a id="opendog" style="cursor:hand" href="javascript:void(0)">精灵狗</a><div class="self_ico">
                    <img src="images/smalldog.jpg" style="height: 17px; width: 15px" /></div></li>
            </ul>
        </div>
        <div class="self_c_r" style="height:378px;">
            <div class="self_c_r_c8">
                <asp:Panel ID="Panel4" runat="server">
                    <span class="font14 font-weight gray_t">1.设置密码保护</span><span class="font14 font-weight gray">
                        >> 2.设置密码保护信息 >> 3.绑定成功</span>
                    <ul>
                        <li><span class="font14 font-weight c8_width">用密保手机找回密码</span><span id="yztel" runat="server">未验证</span><div
                            class="c8_btn">
                            <asp:ImageButton src="images/btn_change.jpg" ID="changeTel" runat="server" Visible="false"
                                OnClick="changeTel_Click" />
                            <asp:ImageButton ImageUrl="images/btn_close.jpg" ID="dbTel" runat="server" OnClick="dbTel_Click" /></div>
                            <br />
                            填写密保手机，用于丢失密码时通过手机找回密码。</li>
                        <li class="line"></li>
                        <li><span class="font14 font-weight c8_width">验证密保邮箱</span><span id="yzemail" runat="server">未验证</span><div
                            class="c8_btn">
                            <asp:ImageButton src="images/btn_change.jpg" ID="changeE" runat="server" Visible="false"
                                OnClick="changeE_Click" />
                            <asp:ImageButton ImageUrl="images/btn_close.jpg" ID="dbemail" runat="server" OnClick="dbemail_Click" /></div>
                            <br />
                            通过密保邮箱，用于丢失密码后通过邮箱找回密码。</li>
                        <li class="line"></li>
                        <li><span class="font14 font-weight c8_width">密码提示问题</span><span id="yzquestion"
                            runat="server">未验证</span><div class="c8_btn">
                                <asp:ImageButton src="images/btn_change.jpg" ID="changeQ" runat="server" Visible="false"
                                    OnClick="changeQ_Click" />
                                <asp:ImageButton ImageUrl="images/btn_close.jpg" ID="dbQuestion" runat="server" OnClick="dbQuestion_Click" /></div>
                            <br />
                            密保提示问题，用户丢失密码后通过提示问题获取密码。</li>
                        <li class="line"></li>
                    </ul>
                </asp:Panel>
                <asp:Panel ID="Panel1" runat="server">
                    <span class="font14 font-weight gray">1.设置密码保护</span> >> <span class="font14 font-weight gray_t">
                        2.设置密码保护信息</span> >> <span class="font14 font-weight gray">3.绑定成功</span>
                    <ul>
                        <li class="coffee font14 font-weight">请输入您想绑定的手机号码</li>
                        <li class="line"></li>
                        <li><span class="font14 font-weight">手&nbsp;机&nbsp;号：</span>&nbsp;
                            <asp:TextBox type="text" name="textfield" ID="txtNewTel" Style="width: 160px" class="input1"
                                runat="server"></asp:TextBox></li>
                        <li><span class="font14 font-weight">确认手机号：</span><asp:TextBox type="text" name="textfield"
                            ID="txtReNewTel" Style="width: 160px" class="input1" runat="server" /></li>
                        <li><span class="font14 font-weight">验 证 码：&nbsp;</span>
                            <asp:TextBox type="text" name="textfield" ID="txtCode" Style="width: 160px" class="input1"
                                runat="server" /><img src="common/RegImg.aspx" id="regImg" alt="请点击" /></li>
                        <li>
                            <asp:ImageButton ID="imgbtnOk" src="images/btn_ok.jpg" runat="server" OnClick="imgbtnOk_Click" />
                            <img id="btn_again" src="images/btn_again.jpg" /><img src="images/btn_return.jpg" onclick="document.location='service_mmbh.aspx'"/></li>
                    </ul>
                    <!------ 手机绑定 end ------>
                </asp:Panel>
                <asp:Panel ID="Panel2" runat="server" Visible="false">
                    <!------ 邮箱绑定 start ------>
                    <span class="font14 font-weight gray">1.设置密码保护</span> >> <span class="font14 font-weight gray_t">
                        2.设置密码保护信息</span> >> <span class="font14 font-weight gray">3.绑定成功</span>
                    <ul>
                        <li class="coffee font14 font-weight">请输入您想绑定的密保邮箱地址</li>
                        <li class="line"></li>
                        <li><span class="font14 font-weight">邮 箱 地 址：</span>&nbsp;<asp:TextBox type="text"
                            name="textfield" ID="txtEmail" Style="width: 160px" class="input1" runat="server"></asp:TextBox></li>
                        <li><span class="font14 font-weight">确认邮箱地址：</span><asp:TextBox type="text" name="textfield"
                            ID="txtReEmail" Style="width: 160px" class="input1" runat="server"></asp:TextBox></li>
                        <li><span class="font14 font-weight">验 证 码：&nbsp;&nbsp;&nbsp;</span>
                            <asp:TextBox type="text" name="textfield" ID="txtECode" Style="width: 160px" class="input1"
                                runat="server"></asp:TextBox><img src="common/RegImg.aspx" id="Img1" alt="请点击" /></li>
                        <li>
                            <asp:ImageButton src="images/btn_ok.jpg" ID="btn_Eok" runat="server" OnClick="btn_Eok_Click" />
                            <img src="images/btn_again.jpg" id="btn_Eagain" /><img src="images/btn_return.jpg" onclick="document.location='service_mmbh.aspx'"/></li>
                    </ul>
                    <!------ 邮箱绑定 end ------>
                </asp:Panel>
                <asp:Panel ID="Panel3" runat="server" Visible="false">
                    <!------ 密码提示问题 start ------>
                    <span class="font14 font-weight gray">1.设置密码保护</span> >> <span class="font14 font-weight gray_t">
                        2.设置密码保护信息</span> >> <span class="font14 font-weight gray">3.绑定成功</span>
                    <ul>
                        <li>
                            <asp:DropDownList ID="ddlQuestion" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlQuestion_SelectedIndexChanged">
                                <asp:ListItem>-请选择密保问题-</asp:ListItem>
                                <asp:ListItem>您父亲的名字是?</asp:ListItem>
                                <asp:ListItem>您母亲的名字是?</asp:ListItem>
                                <asp:ListItem>您配偶的名字是?</asp:ListItem>
                                <asp:ListItem>您子女的生日是?</asp:ListItem>
                                <asp:ListItem>您的出生地?</asp:ListItem>
                            </asp:DropDownList>
                        </li>
                        <li class="font14 font-weight">答&nbsp;&nbsp;案：<asp:TextBox type="text" name="textfield"
                            ID="txtAnswer" Style="width: 160px" class="input1" MaxLength="20" runat="server"></asp:TextBox></li>
                        <li><span class="font14 font-weight">验 证 码：</span>
                            <asp:TextBox type="text" name="textfield" ID="txt8" Style="width: 160px" class="input1"
                                runat="server" /><img src="common/RegImg.aspx" id="Img8" alt="请点击" /></li>
                        <li>
                            <asp:ImageButton ID="imgbtnQuestion" src="images/btn_ok.jpg" runat="server" OnClick="imgbtnQuestion_Click" />
                            <img src="images/btn_again.jpg" id="btn_againQ" /><img src="images/btn_return.jpg" onclick="document.location='service_mmbh.aspx'"/></li>
                    </ul>
                    <input id="hidQuestion" type="hidden" runat="server" value="" />
                    <!------ 密码提示问题 end ------>
                </asp:Panel>
                <asp:Panel ID="Panel5" runat="server">
                    <span class="font14 font-weight gray">1.设置密码保护</span> >> <span class="font14 font-weight gray_t">
                        2.设置密码保护信息</span> >> <span class="font14 font-weight gray">3.绑定成功</span>
                    <ul>
                        <li class="coffee font14 font-weight">请输入您想绑定的手机号码</li>
                        <li class="line"></li>
                        <li><span class="font14 font-weight">原手机号：</span>&nbsp;
                            <asp:TextBox type="text" name="textfield" ID="txtUTel" Style="width: 160px" class="input1"
                                runat="server"></asp:TextBox></li>
                        <li><span class="font14 font-weight">新手机号：</span>&nbsp;
                            <asp:TextBox type="text" name="textfield" ID="txtUNTel" Style="width: 160px" class="input1"
                                runat="server"></asp:TextBox></li>
                        <li><span class="font14 font-weight">确认手机号：</span><asp:TextBox type="text" name="textfield"
                            ID="txtUReTel" Style="width: 160px" class="input1" runat="server" /></li>
                        <li><span class="font14 font-weight">验 证 码：&nbsp;</span>
                            <asp:TextBox type="text" name="textfield" ID="txtUTCode" Style="width: 160px" class="input1"
                                runat="server" /><img src="common/RegImg.aspx" id="Img4" alt="请点击" /></li>
                        <li>
                            <asp:ImageButton ID="ImageButton2" src="images/btn_ok.jpg" runat="server" OnClick="ImageButton2_Click" />
                            <img id="Img5" src="images/btn_again.jpg" /><img src="images/btn_return.jpg" onclick="document.location='service_mmbh.aspx'"/></li>
                    </ul>
                </asp:Panel>
                <asp:Panel ID="Panel6" runat="server">
                    <span class="font14 font-weight gray">1.设置密码保护</span> >> <span class="font14 font-weight gray_t">
                        2.设置密码保护信息</span> >> <span class="font14 font-weight gray">3.绑定成功</span>
                    <ul>
                        <li class="coffee font14 font-weight">请输入您想绑定的密保邮箱地址</li>
                        <li class="line"></li>
                        <li><span class="font14 font-weight">原邮箱地址：</span>&nbsp;<asp:TextBox type="text"
                            name="textfield" ID="txtUEOldEmail" Style="width: 160px" class="input1" runat="server"></asp:TextBox></li>
                        <li><span class="font14 font-weight">新邮箱地址：</span>&nbsp;<asp:TextBox type="text"
                            name="textfield" ID="txtUEmail" Style="width: 160px" class="input1" runat="server"></asp:TextBox></li>
                        <li><span class="font14 font-weight">确认邮箱地址：</span><asp:TextBox type="text" name="textfield"
                            ID="txtUReEmail" Style="width: 160px" class="input1" runat="server"></asp:TextBox></li>
                        <li><span class="font14 font-weight">验 证 码：&nbsp;&nbsp;&nbsp;</span>
                            <asp:TextBox type="text" name="txtUECode" ID="txtUECode" Style="width: 160px" class="input1"
                                runat="server"></asp:TextBox><img src="common/RegImg.aspx" id="Img2" alt="请点击" /></li>
                        <li>
                            <asp:ImageButton src="images/btn_ok.jpg" ID="ImageButton1" runat="server" OnClick="ImageButton1_Click" />
                            <img src="images/btn_again.jpg" id="Img3" /><img src="images/btn_return.jpg" onclick="document.location='service_mmbh.aspx'"/></li>
                    </ul>
                </asp:Panel>
                <asp:Panel ID="Panel7" runat="server">
                    <span class="font14 font-weight gray">1.设置密码保护</span> >> <span class="font14 font-weight gray_t">
                        2.设置密码保护信息</span> >> <span class="font14 font-weight gray">3.绑定成功</span>
                    <ul>
                        <li>
                            <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                <asp:ListItem>-请选择密保问题-</asp:ListItem>
                                <asp:ListItem>您父亲的名字是?</asp:ListItem>
                                <asp:ListItem>您母亲的名字是?</asp:ListItem>
                                <asp:ListItem>您配偶的名字是?</asp:ListItem>
                                <asp:ListItem>您子女的生日是?</asp:ListItem>
                                <asp:ListItem>您的出生地?</asp:ListItem>
                            </asp:DropDownList>
                        </li>
                        <li class="font14 font-weight">答 案：<asp:TextBox type="text" name="textfield" ID="txtUQuesion"
                            Style="width: 160px" class="input1" MaxLength="20" runat="server"></asp:TextBox></li>
                        <li><span class="font14 font-weight">验 证 码：&nbsp;&nbsp;&nbsp;</span>
                            <asp:TextBox type="text" name="txtUECode" ID="txtUQCode" Style="width: 160px" class="input1"
                                runat="server"></asp:TextBox><img src="common/RegImg.aspx" id="Img7" alt="请点击" /></li>
                        <input id="Hidden1" type="hidden" runat="server" value="" />
                        <li>
                        <asp:ImageButton ID="ImageButton3" src="images/btn_ok.jpg" runat="server" OnClick="ImageButton3_Click" />
                        <img src="images/btn_again.jpg" id="Img6" /><img src="images/btn_return.jpg" onclick="document.location='service_mmbh.aspx'"/></li>
                    </ul>
                </asp:Panel>
                <asp:Panel ID="pnResult" runat="server">
                    <span class="font14 font-weight gray">1.设置密码保护 >> 2.设置密码保护信息</span> >> <span class="font14 font-weight gray_t">
                        3.绑定成功</span>
                    <ul>
                        <li class="coffee font14 font-weight">绑定已成功！<br />
                        </li>
                        <%=tShowSuccess %>
                        <li>
                            <img src="images/btn_return.jpg" id="btn_return" /></li>
                        <li></li>
                        <li></li>
                    </ul>
                </asp:Panel>
            </div>
        </div>
    </div><div class="marginTop10"></div>
    <div id="loginFram" style="position: absolute; top: 220px; left: 580px; z-index: 100;
        display: none;">
        <iframe src="UserLogin.aspx" width="292px" height="242px" scrolling="no" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
    </div>
     <div id="qkFram" style="position: absolute; top: 220px; left: 580px; z-index: 100;
        display: none;">
        <iframe src="qkcl.aspx" width="265" height="170px" scrolling="no" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
    </div>
    <div id="dogFram" style="position: absolute; top: 240px; left: 580px; z-index: 100;
        display: none;">
        <iframe src="dog.aspx" width="243px" height="158px" scrolling="no" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
    </div>
    <uc2:footer ID="footer1" runat="server" />
    <!------ 密码保护 end ------>
    </form>
    <script type="text/javascript">
        $(document).ready(function () {
            var name = $('#hidName').val();
            if (name == '') {
                $('#login').html("您好，请登录<a href=\"#\"><img src=\"images/btn_login.jpg\" border=\"0\" /></a>");
                $('#qkcl').removeAttr("onclick");
            } else {
                $('#login').html("欢迎您，<br/>" + name + "用户<br/><a href=\"OutLogin.aspx\" onclick=\"return confirm('确定退出？')\"><img src=\"images/btn_exit.jpg\" border=\"0\" /></a>");
                $('#qkcl').bind({
                    click: function () {
                        document.getElementById("qkFram").style.display = "block";
                    }
                });
                $('#opendog').bind({
                    click: function () {
                        document.getElementById("dogFram").style.display = "block";
                    }
                });
            }
            $('[att=ulogin] a,').click(function () {
                var uname = $('#hidName').val();
                if (uname == '') {
                    document.getElementById("loginFram").style.display = "block";
                    return false;
                }
            });
            var chkMobile = /^(1[3,5,8][0-9]{9})$/;
            var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
            $('#ImageButton3').click(function () {
                if ($('#txtUQuesion').val() == '') {
                    alert('答案不能为空');
                    return false;
                }
                if ($('#Hidden1').val() == '-请选择密保问题-') {
                    alert('您还没选择问题');
                    return false;
                }
            });
            //邮箱更换
            $('#ImageButton1').click(function () {
                var e1 = $('#txtUEOldEmail').val();
                var e2 = $('#txtUEmail').val();
                var e3 = $('#txtUReEmail').val();
                var ec = $('#txtUECode').val();
                if (e1 == '') {
                    alert('原邮箱不能为空');
                    return false;
                }
                if (e2 == '') {
                    alert('新邮箱不能为空');
                    return false;
                }
                if (e3 == '') {
                    alert('确认邮箱不能为空');
                    return false;
                }
                if (e2 != e3) {
                    alert('确认邮箱与新邮箱不一致');
                    return false;
                }
                if (!myreg.test(e1)) {
                    alert('原邮箱格式不正确');
                    return false;
                }
                if (!myreg.test(e2)) {
                    alert('新邮箱格式不正确');
                    return false;
                }
                if (!myreg.test(e3)) {
                    alert('确认邮箱格式不正确');
                    return false;
                }
                if (ec == '') {
                    alert('验证码不能为空');
                    return false;
                }
            });
            //手机更换
            $('#ImageButton2').click(function () {
                var t1 = $('#txtUTel').val();
                var t2 = $('#txtUNTel').val();
                var t3 = $('#txtUReTel').val();
                var c = $('#txtUTCode').val();
                if (t1 == '') {
                    alert('原手机号不能为空');
                    return false;
                }
                if (t2 == '') {
                    alert('新手机号不能为空');
                    return false;
                }
                if (t3 == '') {
                    alert('确认手机号不能为空');
                    return false;
                }
                if (c == '') {
                    alert('验证码不能为空');
                    return false;
                }
                if (t2 != t3) {
                    alert('确认手机号与新手机号不一致');
                    return false;
                }
                if (!chkMobile.test(t1)) {
                    alert('原手机号格式不正确');
                    return false;
                }
                if (!chkMobile.test(t2)) {
                    alert('新手机号格式不正确');
                    return false;
                }
                if (!chkMobile.test(t3)) {
                    alert('确认手机号格式不正确');
                    return false;
                }
            });
            $('#btn_Eagain').click(function () {
                $('#txtEmail').val('');
                $('#txtReEmail').val('');
                $('#txtECode').val('');
                $('#Img1').attr("src", "common/RegImg.aspx?id=" + Math.random());
            });
            $('#btn_return').click(function () {
                document.location = document.location;
            });
            $('#Img1').click(function () {
                $('#Img1').attr("src", "common/RegImg.aspx?id=" + Math.random());
            });
            $('#Img2').click(function () {
                $('#Img2').attr("src", "common/RegImg.aspx?id=" + Math.random());
            });
            $('#Img3').click(function () {
                $('#txtUEOldEmail').val('');
                $('#txtUEmail').val('');
                $('#txtUReEmail').val('');
                $('#txtUECode').val('');
                $('#Img2').attr("src", "common/RegImg.aspx?id=" + Math.random());
            });
            $('#Img4').click(function () {
                $('#Img4').attr("src", "common/RegImg.aspx?id=" + Math.random());
            });
            $('#Img5').click(function () {
                $('#txtUTel').val('');
                $('#txtUNTel').val('');
                $('#txtUReTel').val('');
                $('#txtUTCode').val('');
                $('#Img4').attr("src", "common/RegImg.aspx?id=" + Math.random());
            });
            $('#Img6').click(function () {
                $('#txtUQCode').val('');
                $('#txtUQuesion').val('');
                $('#Img7').attr("src", "common/RegImg.aspx?id=" + Math.random());
            });
            $('#Img7').click(function () {
                $('#Img7').attr("src", "common/RegImg.aspx?id=" + Math.random());
            });
            $('#Img8').click(function () {
                $('#Img8').attr("src", "common/RegImg.aspx?id=" + Math.random());
            });
            $('#btn_againQ').click(function () {
                $('#txt8').val('');
                $('#txtAnswer').val('');
                $('#Img8').attr("src", "common/RegImg.aspx?id=" + Math.random());
            });
            $('#imgbtnQuestion').click(function () {
                if ($('#txtAnswer').val() == '') {
                    alert('您还没有填写答案');
                    return false;
                }
                if ($('#hidQuestion').val() == '') {
                    alert('您还没选择问题');
                    return false;
                }
            });
            $('#btn_again').click(function () {
                $('#txtOldTel').val('');
                $('#txtNewTel').val('');
                $('#txtReNewTel').val('');
                $('#txtCode').val('');
                $('#regImg').attr("src", "common/RegImg.aspx?id=" + Math.random());
            });
            $('#regImg').click(function () {
                $('#regImg').attr("src", "common/RegImg.aspx?id=" + Math.random());
            });
            //手机验证
            $('#imgbtnOk').click(function () {

                if ($('#txtNewTel').val() == '') {
                    alert('手机号不能为空');
                    return false;
                }
                if ($('#txtReNewTel').val() == '') {
                    alert('确认手机号不能为空');
                    return false;
                }
                if ($('#txtNewTel').val() != $('#txtReNewTel').val()) {
                    alert('确认手机号与手机号不一致');
                    return false;
                }
                if (!chkMobile.test($('#txtNewTel').val())) {
                    alert('手机号码格式不正确');
                    $('#txtNewTel').focus();
                    return false;
                }
                if (!chkMobile.test($('#txtReNewTel').val())) {
                    alert('确认手机号码格式不正确');
                    $('#txtReNewTel').focus();
                    return false;
                }
            });
            //邮箱验证
            $('#btn_Eok').click(function () {
                var email = $('#txtEmail');
                var reEmail = $('#txtReEmail');
                var ecode = $('#txtECode').val();

                if (email.val() == '') {
                    alert('邮箱不能为空');
                    email.focus();
                    return false;
                }
                if (reEmail.val() == '') {
                    alert('确认邮箱不能为空');
                    reEmail.focus();
                    return false;
                }
                if (reEmail.val() != email.val()) {
                    alert('确认邮箱与邮箱不一致');
                    reEmail.focus();
                    return false;
                }
                if (!myreg.test(email.val())) {
                    alert("您输入的邮箱格式不正确,请重新输入!");
                    email.focus();
                    return false;
                }
                if (!myreg.test(reEmail.val())) {
                    alert("您输入的邮箱格式不正确,请重新输入!");
                    reEmail.focus();
                    return false;
                }
            });
        });
    </script>
</body>
</html>
